<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo</title>
</head>
<body ng-app="myApp" >
    <div ng-controller="mycontroller">
        <input type="text" ng-model="username">
    </div>

    <script src="angular/angular.js"></script>
    <script>

        var myApp = angular.module('myApp',[]);

        myApp.controller('mycontroller',function($scope){
            $scope.username='小明';
        })

    </script>
</body>
</html>